<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0& ak=9LVtztl4kxzEXtCCqb2824GOp0rSdmSC"></script>
<title>组织级别</title>
<style type="text/css">
	body, html,#allmap {width: 100%;height: 800px;overflow: hidden;margin:0;font-family:"微软雅黑";}
</style>
<link rel="stylesheet" href="../layui/css/layui.css" th:href="@{../layui/css/layui.css}">

</head>

<body>
<a href="/organization/editOrganizationInformation" class="layui-btn">编辑</a>
<table class="layui-table">
  <colgroup>
    <col width="200">
    <col width="200">
    <col>
  </colgroup>
  <thead>
    <tr>
      <th th:text="${orginfd.oname}" colspan="2" style="text-align: center;font-size: 28px;font-weight: 800;line-height: 100px;">组织名称</th>
    </tr> 
  </thead>
  <tbody>
    <tr >
      <td style="font-weight: 600;text-align: right;">书记:</td>
      <td th:text="${orginfd.bname}" style="text-align: left;">书记名称</td>
    </tr>
    <tr>
      <td style="font-weight: 600;text-align: right;">联系人:</td>
      <td th:text="${orginfd.linkman}" style="text-align: left;">联系人</td>
    </tr>
    <tr>
      <td style="font-weight: 600;text-align: right;">电话:</td>
      <td th:text="${orginfd.ophone}" style="text-align: left;">电话</td>
    </tr>
    <tr>
      <td style="font-weight: 600;text-align: right;">委员名单:</td>
      <td th:text="${orginfd.partysList}" style="text-align: left;">委员名单</td>
    </tr> 
    <tr>
      <td style="font-weight: 600;text-align: right;">地址:</td>
      <td th:text="${orginfd.address}" style="text-align: left;">地址</td>
    </tr>
  </tbody>
</table>
<p id="allmap"></p>
<script th:src="@{../layui/layui.js}"></script>
<script type="text/javascript">
	var map = new BMap.Map("allmap");
	map.centerAndZoom(new BMap.Point([[${orginfd.coordinate}]]), 11);  // 设置中心点
	//map.centerAndZoom("新乡");//设置为新乡
	map.setCurrentCity("新乡");          
	map.addControl(new BMap.MapTypeControl());   
	map.enableScrollWheelZoom(true);  
	//创建小狐狸图标
	//function
	
	var pt = new BMap.Point([[${orginfd.coordinate}]]);
	var myIcon = new BMap.Icon("http://lbsyun.baidu.com/jsdemo/img/fox.gif", new BMap.Size(300,157));
	var marker2 = new BMap.Marker(pt,{icon:myIcon});  // 创建标注
	map.addOverlay(marker2);  
</script>

</body>
</html>
